<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<h1>用户列表</h1>
<form action="../SearchUserServlet.do" method="post">
    <input type="text" name="searchQuery" placeholder="请输入用户名">
    <input type="submit" value="查询">
</form>

<table border="1">
    <tr>
        <th>用户编号</th>
        <th>用户名</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    <c:forEach var="user" items="${userList}">
        <tr>
            <td>${user.userId}</td>
            <td>${user.username}</td>
            <td>${user.status}</td>
            <td><a href="userDetails.jsp?userId=${user.userId}">详情</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
